<?php
class IndexController extends Zend_Controller_Action {
	public function init(){
		$this->view->baseUrl = $this->_request->getBaseUrl();
		$menu = '<ul>
				<li class="slogan"></li>
				<li><a href="'.$this->view->baseUrl.'/user" accesskey="p">Users</a></li>
				<li><a href="'.$this->view->baseUrl.'/paciente" accesskey="p">Pacientes</a></li>
				<li><a href="'.$this->view->baseUrl.'/medicamento" accesskey="m">Medicamentos</a></li>
				<li><a href="'.$this->view->baseUrl.'/os" accesskey="o">OS</a></li>
				<li><a href="'.$this->view->baseUrl.'/carrinho" accesskey="o">Carrinho</a></li>
				<li><a href="'.$this->view->baseUrl.'/entrada" accesskey="m">Entradas/Estoque</a></li>
				</ul>';
		$this->view->menu = $menu;
	}
	public function indexAction(){
		
	}
	function preDispatch(){
		$auth = Zend_Auth::getInstance();
		if (!$auth->hasIdentity()) {
			$this->_redirect('/');
		}
	}
}
?>